package com.youlai.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import jakarta.validation.constraints.*;

/**
 * 试卷管理表单对象
 *
 * @author youlaitech
 * @since 2025-07-04 08:25
 */
@Getter
@Setter
@Schema(description = "试卷管理表单对象")
public class ExamPaperForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;


    @Schema(description = "试卷名称")
    @NotBlank(message = "试卷名称不能为空")
    @Size(max=200, message="试卷名称长度不能超过200个字符")
    private String name;

    @Schema(description = "考试时长(分钟)")
    @NotNull(message = "考试时长(分钟)不能为空")
    private Integer time;

    @Schema(description = "试卷状态")
    @NotNull(message = "试卷状态不能为空")
    private Integer status;


}
